package com.feeyo.prophet.mongo.dao;

import com.feeyo.prophet.pojo.po.ChatRecord;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;


public interface ChatRecordRepository extends MongoRepository<ChatRecord, String> {

    Page<ChatRecord> findAllByAppIdAndConversationIdOrderByLastId(String appId, String conversationId, Pageable pageable);

}
